function adminloginOnLoginButtonClick() {
    var account = $('#user-input-content').val();
    var password = $('#password-input-content').val();

    var str = JSON.stringify({"account": account, "password": password});
    var key = makeKey(16);
    var encrypted = CryptoJS.AES.encrypt(str, key).toString();

    var encrypt = new JSEncrypt();
    encrypt.setPublicKey(publicKey);
    key = encrypt.encrypt(key);

    var handle = $('#credential-check-result');
    handle.css("display", "none");

    $.ajax(
        {
            type: 'post',
            async: true,
            data: {'account': encrypted, 'key': key},
            url: document.location.origin + '/api/adminlogincheck',
            dataType:'text',
            success: function(data) {
                var json = JSON.parse(data);

                if (json.result == 200) {
                    setCookie("token", json.token, 30);
                    var uri = document.location.origin + "/fictionlist";
                    window.location.href = uri;
                }
                else {
                    deleteCookie("token");
                    handle.css('display', 'block');
                    handle.text(json.description);
                }
            },
            error: function () {
                console.log("Ajax 发生错误！");
            }
        }
    );
}